home *** CD-ROM | disk | FTP | other *** search
- Path: qcd.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: mixing enums and integers
- Date: 8 Jan 1996 03:44:39 GMT
- Organization: Los Alamos National Laboratory
- Distribution: world
- Message-ID: <4cq3v7$q3m@newshost.lanl.gov>
- References: <4cij6k$dvb@yrkpa.kias.com> <DKtpIL.72z@eskimo.com>
- NNTP-Posting-Host: qcd.lanl.gov
-
- In article <DKtpIL.72z@eskimo.com>, scs@eskimo.com (Steve Summit) writes:
- <snip>
- |> typedef enum x enum_t;
- |> enum x {...};
-
- ANSI C forbids forward declaration of enums! The first reference to an enum
- tag _must_ define the members of the enumeration.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-